package org.nfIt.dao.impl;

import org.nfIt.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * ClossName:BooDaoimpl
 * Pakage:org.nfIt.dao.impl
 * Description
 *
 * @Author L
 * @Create 2024/5/3 13:54
 * @Version 2023.1.3
 */
@Repository("BookDao2")
public class BookDaoimpl2 implements BookDao {

    //简单类型注入
//    @Value("李四")
    //加载外部资源文件值
    @Value("${sex}")
    private String name;

    @Override
    public void say() {
        System.out.println("BookDaoimpl2  执行了。。。。"+  name);
    }
}
